| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/plugins/file-manager-advanced/application/assets/dist/ |
Upload File : |
"use strict";(self.webpackChunkafm_react_admin=self.webpackChunkafm_react_admin||[]).push([[766],{6766(e,t,n){n.r(t),n.d(t,{default:()=>c});var i=n(6540),o=n(4848);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function a(e){if(!e||"string"!=typeof e)return e;try{var t=new URL(e,window.location.origin);return t.protocol=window.location.protocol,t.host=window.location.host,t.toString()}catch(t){return e.startsWith("/")?"".concat(window.location.origin).concat(e):e}}function s(e,t){if(!e||"en"===e||!t)return Promise.resolve();if(window.elFinder&&window.elFinder.prototype&&window.elFinder.prototype.i18&&window.elFinder.prototype.i18[e])return Promise.resolve();var n="elfinder-i18n-".concat(e);return document.getElementById(n)?Promise.resolve():new Promise(function(i){var o=document.createElement("script");o.id=n,o.src="".concat(t,"js/i18n/elfinder.").concat(e,".js"),o.onload=function(){return i()},o.onerror=function(){return i()},document.head.appendChild(o),setTimeout(i,1200)})}function c(e){var t,n,c=e.activeTab,d=(0,i.useRef)(null),l=(t=(0,i.useState)(!0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,d=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){d=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return s}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=l[0],u=l[1],m=function(){var e=document.getElementById("file_manager_advanced");if(!e||!window.jQuery)return!1;var t=window.jQuery(e);try{var n=t.elfinder("instance");if(n&&"function"==typeof n.exec)return n.exec("reload"),window.dispatchEvent(new Event("resize")),!0}catch(e){}return!1},w=function(){var e=document.getElementById("file_manager_advanced");if(!e||!window.jQuery)return!1;var t=window.jQuery(e);try{var n=t.elfinder("instance");if(!n)return!1;var i=Object.keys(n.roots||{});return i.length>0&&n.roots[i[0]]?n.request({data:{cmd:"open",target:n.roots[i[0]],init:1,tree:1},notify:{type:"open",cnt:1,hideCnt:!0},syncOnFail:!0}):n.exec("reload"),window.dispatchEvent(new Event("resize")),!0}catch(e){return!1}};return(0,i.useEffect)(function(){var e=document.getElementById("file_manager_advanced"),t=document.getElementById("file_manager_advanced_proxy");e&&t&&!t.hasChildNodes()&&t.appendChild(e);var n=document.getElementById("fma_rate_us"),i=document.getElementById("afm-top-banner-proxy");n&&n.parentElement&&i&&!i.hasChildNodes()&&i.appendChild(n);var o=document.querySelector(".afm__right-side");o&&o.parentElement&&o.parentElement.removeChild(o)},[]),(0,i.useEffect)(function(){"filemanager"===c&&"settings"===d.current&&sessionStorage.setItem("afm_force_fm_reinit","true"),d.current=c},[c]),(0,i.useEffect)(function(){var e=function(){setTimeout(function(){"true"!==sessionStorage.getItem("afm_force_fm_reinit")&&(w()||m())},120)};return window.addEventListener("afm-filemanager-tab-activated",e),function(){return window.removeEventListener("afm-filemanager-tab-activated",e)}},[]),(0,i.useEffect)(function(){if("filemanager"===c){if("true"===sessionStorage.getItem("afm_ai_settings_changed"))return sessionStorage.removeItem("afm_ai_settings_changed"),sessionStorage.setItem("afm_skip_reinit","true"),void window.location.reload();if("true"===sessionStorage.getItem("afm_onedrive_settings_changed"))return sessionStorage.removeItem("afm_onedrive_settings_changed"),sessionStorage.setItem("afm_force_fm_reinit","true"),void window.location.reload();if("true"===sessionStorage.getItem("afm_ui_options_changed")&&sessionStorage.removeItem("afm_ui_options_changed"),"true"===sessionStorage.getItem("afm_locale_changed"))return sessionStorage.removeItem("afm_locale_changed"),void window.location.reload();var e=sessionStorage.getItem("afm_force_fm_reinit"),t="true"===e;if(t&&sessionStorage.removeItem("afm_skip_reinit"),"true"!==sessionStorage.getItem("afm_skip_reinit")||"true"===e){var n=function(){if(window.jQuery&&window.jQuery.fn.elfinder)try{var e,t,i,o,r=document.getElementById("file_manager_advanced");if(!r)return void setTimeout(n,500);var c="true"===sessionStorage.getItem("afm_force_fm_reinit");c&&sessionStorage.removeItem("afm_force_fm_reinit");var d=r.querySelector(".elfinder"),l=window.jQuery(r);if((d||l.data("elfinder"))&&!c)return void m();if(d||l.data("elfinder")){try{l.elfinder&&l.elfinder("destroy")}catch(e){}r.innerHTML=""}var f,u=a((null===(e=window.wpApiSettings)||void 0===e?void 0:e.root)||(null===(t=window.afmReact)||void 0===t?void 0:t.jsonURL)||"/wp-json/"),w=(null===(i=window.wpApiSettings)||void 0===i?void 0:i.nonce)||(null===(o=window.afmReact)||void 0===o?void 0:o.nonce)||"",h=u.endsWith("/")?u:u+"/";if(h.includes("rest_route=")){var g=h.split("rest_route=")[0]+"rest_route=";f="".concat(g,"/file-manager-advanced/v1/settings&_=").concat(Date.now())}else f="".concat(h,"file-manager-advanced/v1/settings?_=").concat(Date.now());fetch(f,{credentials:"same-origin",headers:{"X-WP-Nonce":w}}).then(function(e){if(!e.ok)throw new Error("Failed to fetch settings");return e.json()}).then(function(e){if(!e||!e.settings){if(!window.afm_object)throw new Error("Invalid settings response");throw new Error("Using fallback settings")}return e}).then(function(e){if(window.afm_object){var t=e.settings;t.fma_locale?window.afm_object.locale=t.fma_locale:void 0!==window.afm_object.locale&&null!==window.afm_object.locale||(window.afm_object.locale="en"),window.afm_object.cm_theme=t.fma_cm_theme||window.afm_object.cm_theme,window.afm_object.theme=t.fma_theme||"light",window.afm_object.hide_path="1"==t.hide_path||1==t.hide_path?1:0,window.afm_object.debug_enabled="1"==t.fma_debug_enabled||1==t.fma_debug_enabled?"1":"0",void 0!==t.display_ui_options&&null!==t.display_ui_options?window.afm_object.ui=Array.isArray(t.display_ui_options)?t.display_ui_options:[]:e.ui_options&&Array.isArray(e.ui_options)&&(window.afm_object.ui=e.ui_options);var n="hide-path",i=document.getElementById(n);if(1==window.afm_object.hide_path){if(!i){var o='<style id="'.concat(n,'" type="text/css">.elfinder-info-path { display:none; } .elfinder-info-tb tr:nth-child(2) { display:none; }</style>');document.head.insertAdjacentHTML("beforeend",o)}}else i&&i.remove()}var r=e.settings.fma_theme||"light";document.querySelectorAll('link[href*="themes/"][href*="/css/theme.css"]').forEach(function(e){e.href.includes("/themes/")&&e.remove()});var c="elfinder-theme-css",d=document.getElementById(c);d&&d.remove();var f=Promise.resolve();if(["dark","grey","windows10","bootstrap","mono","m-light","moono"].includes(r)){var u,m=((null===(u=window.afm_object)||void 0===u?void 0:u.plugin_url)||"")+"application/library/themes/"+r+"/css/theme.css",w=document.createElement("link");w.id=c,w.rel="stylesheet",w.type="text/css",w.href=m,f=new Promise(function(e){w.onload=function(){return e()},w.onerror=function(){return e()},document.head.appendChild(w),setTimeout(function(){return e()},1e3)})}var h=e.settings.fma_cm_theme||"default";document.querySelectorAll('link[href*="codemirror/theme/"]').forEach(function(e){e.href.includes("/codemirror/theme/")&&!e.href.includes("/codemirror/lib/")&&e.remove()});var g="codemirror-theme-css",p=document.getElementById(g);p&&p.remove();var _=Promise.resolve();if("default"!==h){var v,y=((null===(v=window.afm_object)||void 0===v?void 0:v.plugin_url)||"")+"application/library/codemirror/theme/"+h+".css",b=document.createElement("link");b.id=g,b.rel="stylesheet",b.type="text/css",b.href=y,_=new Promise(function(e){b.onload=function(){return e()},b.onerror=function(){return e()},document.head.appendChild(b),setTimeout(function(){return e()},1e3)})}Promise.all([f,_]).then(function(){setTimeout(function(){if(window.afm_object)try{var e=window.afm_object.nonce,t=window.afm_object.locale||"en",n=window.afm_object.cm_theme||"default",i=void 0!==window.afm_object.ui?window.afm_object.ui:["toolbar","tree","path","stat"],o=window.afm_object.plugin_url?window.afm_object.plugin_url+"application/library/":"";s(t,o).then(function(){l.elfinder({cssAutoLoad:!1,url:a(window.afm_object.ajaxurl),requestType:"post",customData:{action:"fma_load_fma_ui",_fmakey:e},defaultView:"icons",height:500,lang:t,i18nBaseUrl:o?o+"js/i18n/":"",workerBaseUrl:o?o+"js/worker/":"",ui:i,handlers:{init:function(e,t){"function"==typeof window.fmaInstallContentSearchUi&&window.fmaInstallContentSearchUi(t)}},commandsOptions:{search:{searchTypes:{SearchTag:{name:"Content",title:"Search inside file text (current folder only)"}}},edit:{mimes:[],editors:[{mimes:["text/plain","text/html","text/javascript","text/css","text/x-php","application/x-php"],info:{name:"Code Editor"},load:function(e){var t=this.file.mime,i=this.file.name,o=window.CodeMirror.fromTextArea(e,{mode:t,indentUnit:4,lineNumbers:!0,lineWrapping:!0,lint:!0,theme:n});if(window.afm_object&&"1"===window.afm_object.debug_enabled&&("text/x-php"===t||"application/x-php"===t||i.toLowerCase().endsWith(".php"))&&"function"==typeof window.analyzePHPDebug){var r,a=function(){var e=o.getValue();e.trim()&&window.analyzePHPDebug(e,i,function(e){!e.valid&&e.errors&&"function"==typeof window.highlightErrorLines&&window.highlightErrorLines(o,e.errors)})};o.on("change",function(){clearTimeout(r),r=setTimeout(a,3e3),setTimeout(function(){var e=o.getValue();e.trim()&&window.analyzePHPDebug(e,i,function(e){e.valid&&"function"==typeof window.clearErrorHighlights?window.clearErrorHighlights(o):!e.valid&&e.errors&&"function"==typeof window.highlightErrorLines&&window.highlightErrorLines(o,e.errors)})},1e3)}),setTimeout(a,2e3)}return o},close:function(e,t){this.myCodeMirror=null},save:function(e,t){window.jQuery(e).val(t.getValue())}}]}}}),setTimeout(function(){window.dispatchEvent(new Event("resize"))},300)})}catch(e){console.error("elFinder reinitialize error:",e),window.dispatchEvent(new Event("resize"))}},300)})}).catch(function(e){"Using fallback settings"!==e.message&&console.error("Failed to fetch settings for elFinder reinitialization:",e),window.afm_object&&setTimeout(function(){try{var e=window.afm_object.nonce,t=window.afm_object.locale||"en",n=window.afm_object.cm_theme||"default",i=void 0!==window.afm_object.ui?window.afm_object.ui:["toolbar","tree","path","stat"],o=window.afm_object.plugin_url?window.afm_object.plugin_url+"application/library/":"";s(t,o).then(function(){l.elfinder({cssAutoLoad:!1,url:a(window.afm_object.ajaxurl),requestType:"post",customData:{action:"fma_load_fma_ui",_fmakey:e},defaultView:"icons",height:500,lang:t,i18nBaseUrl:o?o+"js/i18n/":"",workerBaseUrl:o?o+"js/worker/":"",ui:i,handlers:{init:function(e,t){"function"==typeof window.fmaInstallContentSearchUi&&window.fmaInstallContentSearchUi(t)}},commandsOptions:{search:{searchTypes:{SearchTag:{name:"Content",title:"Search inside file text (current folder only)"}}},edit:{mimes:[],editors:[{mimes:["text/plain","text/html","text/javascript","text/css","text/x-php","application/x-php"],info:{name:"Code Editor"},load:function(e){var t=this.file.mime,i=this.file.name,o=window.CodeMirror.fromTextArea(e,{mode:t,indentUnit:4,lineNumbers:!0,lineWrapping:!0,lint:!0,theme:n});if(window.afm_object&&"1"===window.afm_object.debug_enabled&&("text/x-php"===t||"application/x-php"===t||i.toLowerCase().endsWith(".php"))&&"function"==typeof window.analyzePHPDebug){var r,a=function(){var e=o.getValue();e.trim()&&window.analyzePHPDebug(e,i,function(e){!e.valid&&e.errors&&"function"==typeof window.highlightErrorLines&&window.highlightErrorLines(o,e.errors)})};o.on("change",function(){clearTimeout(r),r=setTimeout(a,3e3),setTimeout(function(){var e=o.getValue();e.trim()&&window.analyzePHPDebug(e,i,function(e){e.valid&&"function"==typeof window.clearErrorHighlights?window.clearErrorHighlights(o):!e.valid&&e.errors&&"function"==typeof window.highlightErrorLines&&window.highlightErrorLines(o,e.errors)})},1e3)}),setTimeout(a,2e3)}return o},close:function(e,t){this.myCodeMirror=null},save:function(e,t){window.jQuery(e).val(t.getValue())}}]}}}),setTimeout(function(){window.dispatchEvent(new Event("resize"))},300)})}catch(e){console.error("elFinder reinitialize error:",e),window.dispatchEvent(new Event("resize"))}},200)})}catch(e){console.error("elFinder reinitialize error:",e),window.dispatchEvent(new Event("resize"))}else setTimeout(n,500)},i=setTimeout(n,t?80:500);return function(){clearTimeout(i)}}sessionStorage.removeItem("afm_skip_reinit")}},[c]),(0,i.useEffect)(function(){var e=function(){"filemanager"===window.location.hash.replace(/^#\/?/,"").toLowerCase().split("/")[0]&&setTimeout(function(){"true"!==sessionStorage.getItem("afm_force_fm_reinit")&&m()},120)};return window.addEventListener("hashchange",e),function(){return window.removeEventListener("hashchange",e)}},[]),(0,i.useEffect)(function(){var e=function(e){!e.detail||"ui_options"!==e.detail.type&&"locale"!==e.detail.type||"filemanager"!==c||(sessionStorage.removeItem("afm_ui_options_changed"),sessionStorage.setItem("afm_force_fm_reinit","true"),setTimeout(function(){w()||m()},100))};return window.addEventListener("afm-settings-changed",e),function(){window.removeEventListener("afm-settings-changed",e)}},[c]),(0,i.useEffect)(function(){if("filemanager"===c){u(!0);var e=function(){var e=document.getElementById("file_manager_advanced_proxy"),t=document.getElementById("file_manager_advanced"),n=!!(e&&e.childNodes&&e.childNodes.length>0),i=!(!t||!t.querySelector(".elfinder"));return!(!n&&!i||(u(!1),0))};if(!e()){var t=new MutationObserver(function(){e()});t.observe(document.body,{childList:!0,subtree:!0});var n=setInterval(function(){e()},250),i=setTimeout(function(){u(!1)},8e3);return function(){t.disconnect(),clearInterval(n),clearTimeout(i)}}}},[c]),(0,o.jsxs)("div",{id:"afm-file-manager-tab",children:[f&&(0,o.jsxs)("div",{style:{padding:"20px 0"},children:[(0,o.jsx)("style",{children:"\n @keyframes afm-skeleton-shimmer {\n 0% { background-position: -200% 0; }\n 100% { background-position: 200% 0; }\n }\n .afm-skeleton {\n background-color: #e2e8f0;\n background-image: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);\n background-size: 200% 100%;\n animation: afm-skeleton-shimmer 1.4s linear infinite;\n }\n "}),(0,o.jsx)("div",{className:"afm-skeleton",style:{height:"40px",width:"260px",borderRadius:"6px",marginBottom:"16px"}}),(0,o.jsx)("div",{className:"afm-skeleton",style:{height:"560px",width:"100%",borderRadius:"8px"}})]}),(0,o.jsx)("div",{id:"afm-top-banner-proxy"}),(0,o.jsx)("div",{id:"file_manager_advanced_proxy"}),(0,o.jsx)("div",{id:"afm-right-banner-proxy",style:{marginTop:"16px"}})]})}}}]);
//# sourceMappingURL=766.chunk.js.map